class CreateContents < ActiveRecord::Migration
  def self.up
    create_table :contents do |t|
      t.column :title, :string
      t.column :title_short, :string
      t.column :text, :text
      t.column :published, :boolean
      t.column :front_page, :boolean
      t.column :order, :integer
      t.column :section, :string
      t.column :category, :string
      t.column :author, :string
      t.column :create_date, :date
      t.column :update_date, :date
    end
  end

  def self.down
    drop_table :contents
  end
end
